<?php
require_once './vendor/autoload.php';
require_once './bin/Openai.php';
$config=require_once './config.php';
define('LOG_PATH',__DIR__.DIRECTORY_SEPARATOR.'log'.DIRECTORY_SEPARATOR);
$action=$_GET['action'];
session_start();
$openAiObj=new \bin\Openai($config);
switch ($action){
    case 'checkMessage':
         $openAiObj->checkMessage();
        break;
    case 'pushMessage':
        $openAiObj->pushMessage();
        break;
    default:
        break;
}